<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5 Transitional//EN">
<%@ page pageEncoding="UTF-8" %>
<%@ page import="jp.co.technotree.apl.api.common.Message,jp.co.technotree.common.ApplicationManager" %>
<%@ page import="jp.co.technotree.apl.cmd.spare.Spa1000Bean,jp.co.technotree.apl.api.common.GlobalConst" %>
<%@ page import="jp.co.technotree.apl.cmd.label.Lbl1000Bean" %>
<jsp:useBean id="formBean" class="jp.co.technotree.apl.cmd.label.Lbl1000Bean" scope="request" />
<%





%>

<html>
	<head>
		<title>予備品管理システム - 現品カンバン作成画面</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Script-Type" content="text/javascript">
		<meta http-equiv="Content-Style-Type" content="text/css">
		
		
		
		<link rel="SHORTCUT ICON" href="../common/img/default/sys_icon.ico">

		<link rel='stylesheet' type='text/css' href='../../common/css/common/base.css' >
		<link rel='stylesheet' type='text/css' href='../../common/css/common/common.css'>
		<link rel='stylesheet' type='text/css' href='../../common/css/label/lbl1000.css'>


		<!-- システムログ -->
		<script src="../../common/js/systemlog.js"></script>

		<!-- ITEM-DROPDOWN START -->
		<link rel="stylesheet" href="../../common/js/dropdown/dropdown.css" type="text/css">
		<script src="../../common/js/dropdown/dropdown.js" type="text/javascript"></script>
		<!-- ITEM-DROPDOWN END -->
		
		<!--ポップアップ用-->
		<link rel='stylesheet' type='text/css' href='../../common/css/popUpPc.css' >
		<script type='text/javascript' src='../../common/js/popUpPc.js'></script>
		
		


<style type='text/css'>
	.LinkItem {
		cursor: pointer;
	}
	.div-wid {
		border-bottom:solid 1px #ccc;
		width:790px; /* 横幅合計 + スクロールバー分 */
		height:300px;
		overflow:auto;
	}
	
	.txtmode3 {
		ime-mode: disabled; /* 半角のみモード */
	}
	
	
</style>



<script language='javascript'>


function onInit(){
	
	
	<%
	//--------------------------------
	//ダウンロード画面-START
	String popupFilePath = formBean.getExcelPath();
	if (popupFilePath != null && !"".equals(popupFilePath)) {
	%>
	var fn="<%=popupFilePath%>";
	var ft="10";
	var downTitleFlg="0";
	var excelTitleFlg="0";

	//1:受注, 2:出荷指示, 3:DNC納品書, 4:DNC納品書バーコード付き, 5:未納, 6:受領, 7:受領比較, 8:内示, 9:内示受注比較 ...他
		var features="location=no, menubar=no, status=no, scrollbars=no, resizable=yes, toolbar=no, width=510, height=400";
		window.open("../download/download?fn=" + fn + "&ft=" + ft + "&downTitleFlg=" + downTitleFlg + "&excelTitleFlg=" + excelTitleFlg, "_blank", features);
		
	<%
	}
	//ダウンロード画面-END
	//--------------------------------
	%>
	
	
	
	//-------------------------------------------------------------------------
	//<!-- ITEM-DROPDOWN START -->
	var panel = document.getElementById("dropdown-panel");
	var input = document.getElementById("addTable");
	var targetList = getElementsByClassName(input,"input","item",true);
	
	dropdown = new CItemDropDownList(targetList,panel,"drop-contents");
	dropdown.setKeyUpEvent(text_onKeyUp);
	dropdown.setSelectEvent(list_onSelect);
	
	//
	dropdown.serverURL="../itm1088/itm1088";
	//<!-- ITEM-DROPDOWN END -->
	//-------------------------------------------------------------------------
	
	//-------------------------------------------------------------------------
	//<!-- RACKNO-DROPDOWN START -->
	var panel2 = document.getElementById("dropdown-panel2");
	var input2 = document.getElementById("addTable");
	var targetList2 = getElementsByClassName2(input2,"input","rackNo",true);
	dropdown2 = new CItemDropDownList(targetList2,panel2,"drop-contents2");
	dropdown2.setKeyUpEvent(text_onKeyUp2);
	dropdown2.setSelectEvent(list_onSelect2);
	dropdown2.serverURL="../sys1088/sys1088";
	
	//
	dropdown2.createTable=function(object,sender,json) {
		var itemList = this.itemList;
		var tableText = "<table cellspacing='0' cellpadding='0' border='0' id='"+this.tableName+"'>";
		if (itemList!=null && itemList.length!=0) {
			for ( var i=0; itemList && i<itemList.length; i++ ){
				var item = itemList[i];
				
				tableText+= "<tr>";
				tableText+= "<td>"+item.rackno+"</td>";
				tableText+= "</tr>";
			}
		} else {
			tableText+= "<tr>";
			tableText+= "<td>該当なし</td>";
			tableText+= "</tr>";
			tableText+= "</table>";
		}
		tableText+= "</table>";
		
		var canvas = document.getElementById(this.canvasName);
		canvas.innerHTML=tableText;
	}
	//<!-- RACKNO-DROPDOWN END -->
	//-------------------------------------------------------------------------

}



//-------------------------------------------------------------------------
//<!-- ポップアップ START -->

//パップアップ解除
function back(){
	document.getElementById("opAlertBtn").style.display = "none";
	document.getElementById("opAlert").style.display = "none";
	document.getElementById("opAlertButton").style.display = "none";
	document.getElementById("opAlertTop").style.display = "none";
	document.getElementById("allbackgr").style.display = "none";
}

//<!-- ポップアップ END -->
//-------------------------------------------------------------------------

//-------------------------------------------------------------------------
//<!-- ITEM-DROPDOWN START -->
var dropdown = null;

var inputDateTime = null;
var timerId = null;
var eventSrc={};
function text_onKeyUp(object,sender,evt){   //Y品番
	var value = sender.value;
	eventSrc.object = object;
	eventSrc.sender = sender;
	eventSrc.evt = evt;
	inputDateTime = new Date();
	
	
	
	//-----------------------------------------------
	//品番自動ハイフン「-」を付ける
	var chkLen=5;
	if(event.keyCode != 0008){
		//指定の桁以上ならスタート
		if(value.length>=chkLen){
			var hikaku = value.substring(chkLen, chkLen+1);
			if(hikaku != "-"){
				var frontValue = value.substring(0, chkLen);
				var backValue  = value.substring(chkLen, value.length);
				sender.value=frontValue+"-"+backValue;
			}
		}
	}
	//小文字を大文字へ
	sender.value = sender.value.toUpperCase();
	value = sender.value;
	//-----------------------------------------------
	if ( value.length >= <%=formBean.getGohoKensu() %> ){
		if ( evt.keyCode == 37 || evt.keyCode == 39 ){
			
		}else{
			if ( timerId == null ){
				// 連続送信防止
				timerId = window.setTimeout(function(){text_onTimeOut(object,sender,evt);},500);
			}
		}
	}
}

/**
* 一定時間入力が止まった場合に動作
*/
function text_onTimeOut(object,sender,evt){
	var nowDateTime = new Date();
	var lngTime = (nowDateTime.getTime()-inputDateTime.getTime());
	if ( lngTime >= 1000 ){
		timerId = null;
		xmlRequest(object,sender,evt);
	}else{
		timerId = window.setTimeout(function(){text_onTimeOut(eventSrc.object,eventSrc.sender,eventSrc.evt);},500);
	}
}

/**
* XML要求処理
*/
function xmlRequest(object,sender,evt){
	//alert_Custom(evt.keyCode);
	var table = document.getElementById("drop-contents");
	table.innerHTML="";
	
	var top = calculateOffsetTop(sender);
	var left = calculateOffsetLeft(sender);
	var height = sender.offsetHeight;
	var panel = document.getElementById("dropdown-panel");
	panel.style.top=top+height+"px";
	panel.style.left=left+"px";
	panel.style.display="block";
	
	var param="itemCd="+sender.value+"&rsvDiv=0&tempFlg=0&delDiv=0";
	
	try {
		var frm = document.main;
		var objs = frm["invCate"];
		if (objs[1].checked == true){
			//仮入出庫
			param += "&afterProc=1";
		}
	} catch (e) {
		
	}

	object.doXmlRequest(object,sender,param);
}


/**
* リスト選択時コールバック処理（品番）
*/
function list_onSelect(object,sender,json){
	var panel = document.getElementById("dropdown-panel");
	panel.style.display="none";
	sender.focus();
	
	//----------
	var name=sender.name;
	var idx=name.substring(name.indexOf("[")+1,name.length-1);

	document.getElementById("findItemNo").value=json.itemcd;							//棚番＿検索用
	document.getElementById("rackNo").value=json.rackno;								//棚番
	document.getElementById("itemNo").value=document.getElementById("findItemNo").value;//品番
	document.getElementById("itemNm").value=json.itemnm;								//品名
	document.getElementById("model").value=json.model;									//型式
	document.getElementById("leadTm").value=json.leadtm;								//リードタイム
	
	
	document.getElementById("findRackNo").value=""    //棚番＿検索を削除

	//alert(document.getElementById("rackNo").value+'  '+document.getElementById("itemNm").value +"   "+ document.getElementById("model").value+"   "+document.getElementById("leadTm").value);
	
}


function getElementsByClassName(parent,tagName,className,fullMatch){
	var i=0,j=0;
	var result = [], cnt = 0;
	var list = parent.getElementsByTagName(tagName);
	for ( i=0; i<list.length; i++ ){
		var name = list[i].className;
		if ( name ){
			var nameList = name.split(' ');
			for ( j=0; j<nameList.length; j++ ){
				if ( fullMatch ){
					if ( nameList[j] == className ){
						result[cnt++] = list[i];
					}
				}else{
					if ( nameList[j].indexOf(className) != -1 ){
						result[cnt++] = list[i];
					}
				}
			}
		}
	}
	return result;
}
function closeBtn(){
	var panel = document.getElementById("dropdown-panel");
	panel.style.display="none";
} 
//----------------------------------------------------------------------

//-------------------------------------------------------------------------
//<!-- RACKNO-DROPDOWN START -->
var dropdown2 = null;

var inputDateTime2 = null;
var timerId2 = null;
var eventSrc2={};
function text_onKeyUp2(object,sender,evt){     //棚番
	var value = sender.value;
	eventSrc2.object = object;
	eventSrc2.sender = sender;
	eventSrc2.evt = evt;
	inputDateTime2 = new Date();
	
	
	
	
	//-----------------------------------------------
	//品番自動ハイフン「-」を付ける
	var chkLen=2;
	if(event.keyCode != 0008){
		//指定の桁以上ならスタート
		if(value.length>=chkLen){
			var hikaku = value.substring(chkLen, chkLen+1);
			if(hikaku != "-"){
				var frontValue = value.substring(0, chkLen);
				var backValue  = value.substring(chkLen, value.length);
				sender.value=frontValue+"-"+backValue;
			}
		}
	}
	//品番自動ハイフン「-」を付ける
	var chkLen=5;
	if(event.keyCode != 0008){
		//指定の桁以上ならスタート
		if(value.length>=chkLen){
			var hikaku = value.substring(chkLen, chkLen+1);
			if(hikaku != "-"){
				var frontValue = value.substring(0, chkLen);
				var backValue  = value.substring(chkLen, value.length);
				sender.value=frontValue+"-"+backValue;
			}
		}
	}
	//小文字を大文字へ
	sender.value = sender.value.toUpperCase();
	value = sender.value;
	//-----------------------------------------------
	if ( value.length >= <%=formBean.getTanaKensu() %> ){
		if ( evt.keyCode == 37 || evt.keyCode == 39 ){
			
		}else{
			if ( timerId2 == null ){
				// 連続送信防止
				timerId2 = window.setTimeout(function(){text_onTimeOut2(object,sender,evt);},500);
			}
		}
	}
}

/**
* 一定時間入力が止まった場合に動作
*/
function text_onTimeOut2(object,sender,evt){
	var nowDateTime = new Date();
	var lngTime = (nowDateTime.getTime()-inputDateTime2.getTime());
	if ( lngTime >= 1000 ){
		timerId2 = null;
		xmlRequest2(object,sender,evt);
	}else{
		timerId2 = window.setTimeout(function(){text_onTimeOut2(eventSrc2.object,eventSrc2.sender,eventSrc2.evt);},500);
	}
}

/**
* XML要求処理
*/
function xmlRequest2(object,sender,evt){
	//alert_Custom(evt.keyCode);
	var table = document.getElementById("drop-contents2");
	table.innerHTML="";
	
	var top = calculateOffsetTop(sender);
	var left = calculateOffsetLeft(sender);
	var height = sender.offsetHeight;
	var panel = document.getElementById("dropdown-panel2");
	panel.style.top=top+height+"px";
	panel.style.left=left+"px";
	panel.style.display="block";
	
	var param="sysId=<%=GlobalConst.TANA%>&"+"value1="+sender.value+"";
	
	try {
		var frm = document.main;
		var objs = frm["invCate"];
		if (objs[1].checked == true){
			//仮入出庫
			param += "&afterProc=1";
		}
	} catch (e) {
		
	}

	object.doXmlRequest(object,sender,param);
}


/**
* リスト選択時コールバック処理(棚番)
*/
function list_onSelect2(object,sender,json){
	var panel = document.getElementById("dropdown-panel2");
	panel.style.display="none";
	sender.focus();
	
	//---------- 
	var name=sender.name;
	var idx=name.substring(name.indexOf("[")+1,name.length-1);
	
	document.getElementById("findRackNo").value = json.rackno;
	document.getElementById("rackNo").value=document.getElementById("findRackNo").value
	
	document.getElementById("itemNo").value=json.itemcd;		//品番
	document.getElementById("itemNm").value=json.itemnm;		//品名
	document.getElementById("model").value=json.model;			//型式
	document.getElementById("leadTm").value=json.leadtm;		//リードタイム
	
	
	document.getElementById("findItemNo").value="";	//品番＿検索を削除
	
	//alert(document.getElementById("rackNo").value+'  '+document.getElementById("itemNm").value +"   "+ document.getElementById("model").value+"   "+document.getElementById("leadTm").value);

	
}


function getElementsByClassName2(parent,tagName,className,fullMatch){
	var i=0,j=0;
	var result = [], cnt = 0;
	var list = parent.getElementsByTagName(tagName);
	for ( i=0; i<list.length; i++ ){
		var name = list[i].className;
		if ( name ){
			var nameList = name.split(' ');
			for ( j=0; j<nameList.length; j++ ){
				if ( fullMatch ){
					if ( nameList[j] == className ){
						result[cnt++] = list[i];
					}
				}else{
					if ( nameList[j].indexOf(className) != -1 ){
						result[cnt++] = list[i];
					}
				}
			}
		}
	}
	return result;
}
function closeBtn2(){
	var panel = document.getElementById("dropdown-panel2");
	panel.style.display="none";
} 
//----------------------------------------------------------------------




//「一覧追加」ボタン押下
function addBtn() {
	
	//var findRackNo = document.getElementById("findRackNo"); //棚番
	//var findItemNo = document.getElementById("findItemNo"); //Y品番
	
	
	//一覧用 
	var rackNo = document.getElementById("rackNo"); 		//棚番
	var leadTm = document.getElementById("leadTm"); 		//リードタイム
	var model = document.getElementById("model");  			//型式
	var itemNm = document.getElementById("itemNm"); 		//品名
	var itemNo = document.getElementById("itemNo"); 		//品番
	
	

	var checkBool = false;
	
	//空いている一覧に入れ込み処理
	for(var i=1; i<7; i++){
		//空いているか判断
		if(document.getElementById("itemNo"+i).value == ""){
			
			document.getElementById("rackNo"+i).value = rackNo.value;
			document.getElementById("itemNo"+i).value = itemNo.value;
			document.getElementById("leadTm"+i).value = leadTm.value;
			document.getElementById("model"+i).value = model.value;
			document.getElementById("itemNm"+i).value = itemNm.value;
			
			checkBool = true;
			
			return;
		}
	}

	//一覧にいっぱいになったときはメッセーを出す 
	if(checkBool == false){
		//INF01200=カンバンの一覧に追加できません。クリア後に再度追加してください。
		alert_Custom("<%=Message.getMessage("INF01200")%>");  
		return;
	}
}



//「クリア」ボタン押下
function clearBtn(num) {
	
	//該当する一覧を削除 
	document.getElementById("rackNo"+num).value = "";
	document.getElementById("itemNo"+num).value = "";
	document.getElementById("itemNm"+num).value = "";
	document.getElementById("model"+num).value = "";
	document.getElementById("leadTm"+num).value = "";
	

}


//「戻る」ボタン押下
function cancelBack(num) {
	location.href="../topmenu/top1000.fw";
}




//EXCEl出力(発行)
function printBtn(){
	
	//一覧情報の存在有無判断
	if(!checkList()){
		//現品かんばんに出力する情報がありません。
		alert_Custom("<%=Message.getMessage("WRN01170")%>");
		return;
		
	}
	
	//INF01160=$1をExcelに出力します。よろしいですか？
	var afterFunc="printBtnExe();"
	if (!confirm_Custom3("<%=Message.getMessage("INF01160").replace("$1", "現品カンバン")%>",afterFunc)){
		return ;
	}

}


//EXCEl出力(発行)実行
function printBtnExe(){
	mainForm = document.getElementById("F1");
	document.getElementById("submitType").value = "1";
	mainForm.submit();
}



//一覧情報の存在有無判断
function checkList(){
	
	//空いている一覧に入れ込み処理
	for(var i=1; i<7; i++){
		//空いているか判断
		if(document.getElementById("itemNo"+i).value != ""){
			
			return true;
		}
	}
	return false;
	
}



</script>




	</head>
	<body onLoad="onInit()" style="margin: 0px 4px 0px 0px;">
	
	    <form name="main" id="F1" action="./lbl1000" method="post" class="frmMain"  enctype="multipart/form-data" onsubmit="return false;">
	    

			<table class="tblMain" width="100%" cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td valign="top">
						<table class='main-width-tb'  cellspacing='0' cellpadding='0' border='0'><tr><td></td></tr></table>
						<table class='main-height-tb' cellspacing='0' cellpadding='0' border='0'><tr><td></td></tr></table>

						<!-- Header Menu START -->
						<div class="header-title">予備品管理システム(<%=formBean.kojou%>)</div>
						<!-- Header Menu END -->

						<!-- ***** [FORM] MAIN-FORM ***** -->
						<div id="lc-out" style="z-index: 0;">
							<div id="lc-in" style="z-index: 0">

								<div  style="margin: 20px; width: 98%;">
									<div class="subtitle">現品カンバン作成画面</div>
									<table  border="0" style="width: 98%;" class="txtCenter">
										<tr>
											<td>
												<table  border="0" width=70% id="addTable" name="addTable" >
													<tr>
														<td>　　　　　　　　　　　　　　　　　　
															棚番：
															<input type="text" class="rackNo inputStyle txtmode3" style="width:120px;" name="findRackNo" id="findRackNo" value="" maxlength="8">
														</td>
														
														
														<td>
															Y品番：
															<input id="findItemNo" type="text" class="item inputStyle txtmode3" style="width:120px;" name="findItemNo" value="" maxlength="11">
														</td>
														<td class="txtright">
															<input type="image" src="../../common/img/pc/btn_add_off.png" onclick="addBtn()" alt="追加">
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</div>
							</div><!-- lc-out  -->

							<div id="lc-in_under" style="z-index: 0">
								<!-- スペース -->
								<table style="height:20px;"><tr><td></td></tr></table>
								<table  border="0" style="width: 98%;">
									<tr>
										<td>
											<table  border="1" width="770px" height="30px" class="data-grid"  align="center">
												<tr>
													<th class="TblField1" style="background-color: #CAE1FF;">&nbsp;</th>
													<th class="TblField2" style="background-color: #CAE1FF;">棚番</th>
													<th class="TblField3" style="background-color: #CAE1FF;">Y品番</th>
													<th class="TblField4" style="background-color: #CAE1FF;">品名</th>
													<th class="TblField5" style="background-color: #CAE1FF;">型式</th>
													<th class="TblField6" style="background-color: #CAE1FF;">L/T</th>
													<th class="TblField7" style="background-color: #CAE1FF;">選択</th>
												</tr>
											</table>
											
											<table  border="1" width="790px" height="30px" class="data-grid"  style="background-color: #FFFFFF;" align="center">
												
												<tr>
													<td class="TblField1 txtCenter">1
													</td>
													<td class="TblField2" ><input type="text" class="TblField2_text"  id="rackNo1"  name="rackNo1"  value="<%=formBean.getRackNo1()%>" readonly></td>
													<td class="TblField3" ><input type="text" class="TblField3_text"  id="itemNo1"  name="itemNo1"  value="<%=formBean.getItemNo1()%>" readonly></td>
													<td class="TblField4" ><input type="text" class="TblField4_text"  id="itemNm1"  name="itemNm1" value="<%=formBean.getItemNm1()%>" readonly></td>
													<td class="TblField5" ><input type="text" class="TblField5_text"  id="model1"   name="model1"  value="<%=formBean.getModel1()%>" readonly></td>
													<td class="TblField6 txtCenter"><input type="text" class="TblField6_text"  id="leadTm1"  name="leadTm1"  value="<%=formBean.getLeadTm1()%>" readonly></td>
													
													<!-- クリアボタン -->
													<td class="TblField7 txtCenter"><input type="button" value="ｸﾘｱ"  onclick="clearBtn(1)"></td>
												</tr>
												<tr>
													<td class="TblField1 txtCenter">2
													</td>
													<td class="TblField2" ><input type="text" class="TblField2_text"  id="rackNo2"  name="rackNo2"  value="<%=formBean.getRackNo2() %>" readonly></td>
													<td class="TblField3" ><input type="text" class="TblField3_text"  id="itemNo2"  name="itemNo2"  value="<%=formBean.getItemNo2() %>" readonly></td>
													<td class="TblField4" ><input type="text" class="TblField4_text"  id="itemNm2"  name="itemNm2" value="<%=formBean.getItemNm2() %>" readonly></td>
													<td class="TblField5" ><input type="text" class="TblField5_text"  id="model2"   name="model2"  value="<%=formBean.getModel2()%>" readonly></td>
													<td class="TblField6 txtCenter"><input type="text" class="TblField6_text"  id="leadTm2"  name="leadTm2"  value="<%=formBean.getLeadTm2() %>" readonly></td>
													
													<!-- クリアボタン -->
													<td class="TblField7 txtCenter"><input type="button" value="ｸﾘｱ"  onclick="clearBtn(2)"></td>
												</tr>
												<tr>
													<td class="TblField1 txtCenter">3
													</td>
													<td class="TblField2" ><input type="text" class="TblField2_text"  id="rackNo3"  name="rackNo3"  value="<%=formBean.getRackNo3() %>" readonly></td>
													<td class="TblField3" ><input type="text" class="TblField3_text"  id="itemNo3"  name="itemNo3"  value="<%=formBean.getItemNo3() %>" readonly></td>
													<td class="TblField4" ><input type="text" class="TblField4_text"  id="itemNm3"  name="itemNm3" value="<%=formBean.getItemNm3() %>" readonly></td>
													<td class="TblField5" ><input type="text" class="TblField5_text"  id="model3"   name="model3"  value="<%=formBean.getModel3() %>" readonly></td>
													<td class="TblField6 txtCenter"><input type="text" class="TblField6_text"  id="leadTm3"  name="leadTm3"  value="<%=formBean.getLeadTm3() %>" readonly></td>
													
													<!-- クリアボタン -->
													<td class="TblField7 txtCenter"><input type="button" value="ｸﾘｱ"  onclick="clearBtn(3)"></td>
												</tr>
												<tr>
													<td class="TblField1 txtCenter">4
													</td>
													<td class="TblField2" ><input type="text" class="TblField2_text"  id="rackNo4"  name="rackNo4"  value="<%=formBean.getRackNo4() %>" readonly></td>
													<td class="TblField3" ><input type="text" class="TblField3_text"  id="itemNo4"  name="itemNo4"  value="<%=formBean.getItemNo4() %>" readonly></td>
													<td class="TblField4" ><input type="text" class="TblField4_text"  id="itemNm4"  name="itemNm4" value="<%=formBean.getItemNm4() %>" readonly></td>
													<td class="TblField5" ><input type="text" class="TblField5_text"  id="model4"   name="model4"  value="<%=formBean.getModel4() %>" readonly></td>
													<td class="TblField6 txtCenter"><input type="text" class="TblField6_text"  id="leadTm4"  name="leadTm4"  value="<%=formBean.getLeadTm4() %>" readonly></td>
													
													<!-- クリアボタン -->
													<td class="TblField7 txtCenter"><input type="button" value="ｸﾘｱ"  onclick="clearBtn(4)"></td>
												</tr>
												<tr>
													<td class="TblField1 txtCenter">5
													</td>
													<td class="TblField2" ><input type="text" class="TblField2_text"  id="rackNo5"  name="rackNo5"  value="<%=formBean.getRackNo5() %>" readonly></td>
													<td class="TblField3" ><input type="text" class="TblField3_text"  id="itemNo5"  name="itemNo5"  value="<%=formBean.getItemNo5() %>" readonly></td>
													<td class="TblField4" ><input type="text" class="TblField4_text"  id="itemNm5"  name="itemNm5" value="<%=formBean.getItemNm5() %>" readonly></td>
													<td class="TblField5" ><input type="text" class="TblField5_text"  id="model5"   name="model5"  value="<%=formBean.getModel5() %>" readonly></td>
													<td class="TblField6 txtCenter"><input type="text" class="TblField6_text"  id="leadTm5"  name="leadTm5"  value="<%=formBean.getLeadTm5() %>" readonly></td>
													
													<!-- クリアボタン -->
													<td class="TblField7 txtCenter"><input type="button" value="ｸﾘｱ"  onclick="clearBtn(5)"></td>
												</tr>
												<tr>
													<td class="TblField1 txtCenter">6
													</td>
													<td class="TblField2" ><input type="text" class="TblField2_text"  id="rackNo6"  name="rackNo6"  value="<%=formBean.getRackNo6() %>" readonly></td>
													<td class="TblField3" ><input type="text" class="TblField3_text"  id="itemNo6"  name="itemNo6"  value="<%=formBean.getItemNo6() %>" readonly></td>
													<td class="TblField4" ><input type="text" class="TblField4_text"  id="itemNm6"  name="itemNm6" value="<%=formBean.getItemNm6() %>" readonly></td>
													<td class="TblField5" ><input type="text" class="TblField5_text"  id="model6"   name="model6"  value="<%=formBean.getModel6() %>" readonly></td>
													<td class="TblField6 txtCenter"><input type="text" class="TblField6_text"  id="leadTm6"  name="leadTm6"  value="<%=formBean.getLeadTm6() %>" readonly></td>
													
													<!-- クリアボタン -->
													<td class="TblField7 txtCenter"><input type="button" value="ｸﾘｱ"  onclick="clearBtn(6)"></td>
												</tr>
												
											</table>
										</td>
									</tr>
									<!-- スペース -->
									<tr height="20px"><td></td></tr>
									<tr>
										<td align="center"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="image" src="../../common/img/pc/btn_excel_out_off.png" onclick="printBtn()" alt="Excel出力" align=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											
											<input type="image" src="../../common/img/pc/btn_back_off.png" onclick="cancelBack()" align="">
										</td>
									</tr>
									<tr><td><br><br><br><br><br><br><br><br></td></tr>
								</table>
							</div><!-- lc-in_under End -->
						</div><!-- lc-out  -->
					</td>
				</tr>
			</table>


<!-- ITEM-DROPDOWN START -->
<div class="dropdown-panel" id="dropdown-panel">
	<div class="dropdown-panel-in">
		<div class="header">
			<div style="float:left;width:110px;height:20px;">
				<table border=0>
					<tr>
						<td style="width:110px;height:20px;">品番</td>
					</tr>
				</table>
			</div>
			<div style="float:right;width:40px;text-align:right;">
				<button class="closebtn" type="button" onClick="closeBtn();" style="width:18px;height:17px; padding:0px;">
					<img src="../../common/js/dropdown/close.gif" alt="閉じる">
				</button>
			</div>
		</div>
		<div class="drop-contents" id="drop-contents">
		</div>
		<div class="footer"></div>
	</div>
</div>
<!-- ITEM-DROPDOWN END -->

<!-- RACKNO-DROPDOWN START -->
<div class="dropdown-panel" id="dropdown-panel2">
	<div class="dropdown-panel-in">
		<div class="header">
			<div style="float:left;width:110px;height:20px;">
				<table border=0>
					<tr>
						<td style="width:110px;height:20px;">棚番</td>
					</tr>
				</table>
			</div>
			<div style="float:right;width:40px;text-align:right;">
				<button class="closebtn" type="button" onClick="closeBtn2();" style="width:18px;height:17px; padding:0px;">
					<img src="../../common/js/dropdown/close.gif" alt="閉じる">
				</button>
			</div>
		</div>
		<div class="drop-contents" id="drop-contents2">
		</div>
		<div class="footer"></div>
	</div>
</div>
<!-- RACKNO-DROPDOWN END -->

<!--警告 ポップアップ---------------------------------------------------------------------------- -->
	<div id="allbackgr" class="allbackgr" style="display:none;"></div>
	<div class="opAlertBtn" id = "opAlertBtn" style="display:none;" ></div>
	<div class="opAlertButton" id = "opAlertButton" style="display:none;" ></div>
	<div class="opAlertTop" id = "opAlertTop" style="display:none; font-size:22px;">　予備品管理システム　</div>
	<div class="opAlert" id = "opAlert" style="display:none;"></div>
<!-- -------------------------------------------------------------------------------------------- -->




			<input type="hidden" name="cmd" value="cmd01">
			<input type="hidden" name="submitType" id="submitType" value="">
			<input type="hidden" name="uplodFile" id="uplodFile" value="">
			
			<input type="hidden" name="leadTm" id="leadTm" value="">
			<input type="hidden" name="model" id="model" value="">
			<input type="hidden" name="itemNm" id="itemNm" value="">
			<input type="hidden" name="rackNo" id="rackNo" value="">
			<input type="hidden" name="itemNo" id="itemNo" value="">
			
			
	
		</form>
	</body>
</html>
